//==============================================================================
#ifndef _HRTIMER_H_
#define _HRTIMER_H_

#include <windows.h>

typedef struct {
    LARGE_INTEGER start;
    LARGE_INTEGER stop;
} HRTIMER_TYPE;

//==============================================================================
class HRTimer {

private:
	HRTIMER_TYPE timer;
	LARGE_INTEGER frequency;
	double LIToSecs( LARGE_INTEGER & L);
public:
	HRTimer();
	void startTimer( );
	void stopTimer( );
	double getElapsedTime();
};
#endif